package a02oopextendsdemo2;

public class Test {
    public static void main(String[] args) {
        Manager m = new Manager("123","xurui",
                    15000,8000);
        System.out.println(m.getId()+", "+m.getName()+", "
                +m.getSalary()+", "+m.getBouns());
        m.work();
        m.eat();

        System.out.println("\n");
        Cook c = new Cook();
        c.setId("234");
        c.setName("厨师");
        c.setSalary(5000);

        System.out.println(c.getId()+", "+c.getName()+", "
                +c.getSalary());
        c.work();
        c.eat();
    }
}
